<script setup>
import { information } from '../../api/home'
import { useRouter } from 'vue-router';

import { ref } from 'vue'
const prolist = ref([])
const router = useRouter()
function onClickLeft() {
    // console.log(router);
    router.back()
}
information().then(res => {
    // console.log(res.data);
    prolist.value = res.data.data
})

function jumpimg() {
    router.push('/step6')
}
</script>



<template>
    <div>
        <van-nav-bar title="精彩放送" left-text="返回" left-arrow @click-left="onClickLeft" />

        <van-card v-for="item in prolist" :key="item.id" :desc="item.information" :title="item.text" :thumb="item.img"
            @click="jumpimg" />
    </div>
</template>